package models.rbac;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;

import models.BaseEntity;
import models.User;

import java.util.*;

@Entity
public class Role extends BaseEntity {
    
	public String name;
	
//	@ManyToMany(mappedBy="roles")
//	public List<Privilege> privileges;
	
	//管理员管理
	public boolean r01;
	//新建管理员
	public boolean r0101;
	//管理员查看
	public boolean r0102;
	//管理员修改
	public boolean r0103;
	//新建管理组
	public boolean r0104;
	//管理组
	public boolean r0105;
	//管理组修改
	public boolean r0106;
	//修改密码
	public boolean r0107;
	
	//===========================================
	//用户管理
	public boolean r02;
	//新建用户
	public boolean r0201;
	//查看用户
	public boolean r0202;
	//修改用户
	public boolean r0203;
	//查看用户Log
	public boolean r0204;
	//修改用户Log
	public boolean r0205;
	
	//===========================================
	//商城管理
	public boolean r03;
	
	//===========================================
	//商品管理
	public boolean r04;
	//新建品牌
	public boolean r0401;
	//查看品牌
	public boolean r0402;
	//修改品牌
	public boolean r0403;
	//新建商品
	public boolean r0404;
	//查询商品
	public boolean r0405;
	//修改商品
	public boolean r0406;
	
	//===========================================
	//订单管理
	public boolean r05;
	//汇款确认查看
	public boolean r0501;
	//汇款确认修改
	public boolean r0502;
	//发货确认查看
	public boolean r0503;
	//发货确认修改
	public boolean r0504;
	//历史订单查看
	public boolean r0505;
	//历史订单修改
	public boolean r0506;
	
	//===========================================
	//消息管理
	public boolean r06;
	//查看退款消息
	public boolean r0601;
	//修改退款消息
	public boolean r0602;
	//回复退款消息
	public boolean r0603;
	//查看匿名查询
	public boolean r0604;
	//审核匿名查询
	public boolean r0605;
	//修改匿名查询
	public boolean r0606;
	//回复匿名查询
	public boolean r0607;
	//查看其他消息
	public boolean r0608;
	//修改其他消息
	public boolean r0609;
	//回复其他消息
	public boolean r0610;
	
	//===========================================
	//文章管理
	public boolean r07;
	//查看文章
	public boolean r0701;
	//修改文章
	public boolean r0702;
	
	//===========================================
	//运价管理
	public boolean r08;
	//查看地区信息
	public boolean r0801;
	//修改地区信息
	public boolean r0802;
	//查看公司信息
	public boolean r0803;
	//修改公司信息
	public boolean r0804;
	//查看价格信息
	public boolean r0805;
	//修改价格信息
	public boolean r0806;
}